package com.google.code.geocoder;

import com.google.code.geocoder.model.DirectionsRequest;
import com.google.code.geocoder.model.LatLng;

public class DirectionsRequestBuilder {
    private final DirectionsRequest directionsRequest = new DirectionsRequest();

    public DirectionsRequestBuilder setOrigin(String origin) {
        directionsRequest.setOrigin(origin);
        return this;
    }

    public DirectionsRequestBuilder setOrigin(LatLng originLatLng) {
        directionsRequest.setOrigin(originLatLng.toString());
        return this;
    }

    public DirectionsRequestBuilder setDestination(String destination) {
        directionsRequest.setDestination(destination);
        return this;
    }

    public DirectionsRequestBuilder setDestination(LatLng destinationLatLng) {
        directionsRequest.setDestination(destinationLatLng.toString());
        return this;
    }

    public DirectionsRequest getDirectionsRequest() {
        return directionsRequest;
    }
}
